package com.config.client;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.zx.model.User;

@RestController
public class UserController {

	@RequestMapping(value="/user",method=RequestMethod.GET)
	public List<User> readUserInfo(){
		//List<User> ls=userService.searchAll();
		List<User> ls = new ArrayList<User>();
		User u = new User();
		u.setUsername("zhangsan");
		ls.add(u);
		u = new User();
		u.setUsername("lisi");
		ls.add(u);
		return ls;
	}
}
